<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<link href="themes/css/ui.common.css" rel="stylesheet" type="text/css" />
		<link href="themes/css/ui.child.css" rel="stylesheet" type="text/css" />
		<link href="themes/css/ui.tips.css" rel="stylesheet" type="text/css" />
		<link href="style/jquery_ui/jquery-ui-1.8.custom.css" rel="stylesheet"
			type="text/css" />
		<link id="skin_css" rel="stylesheet" type="text/css"
			href="themes/css/ui.c.blue.css"></link>
		<link rel="stylesheet" href="themes/default/pagination.css"
			type="text/css"></link>
		<link rel="stylesheet" href="themes/css/ui.validation.css" type="text/css"></link>
		<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
		<script src="Scripts/jquery-ui-1.8.custom.min.js"
			type="text/javascript"></script>
		<script src="Scripts/ui.tips.js" type="text/javascript"></script>
		<script src="Scripts/ui.default.js " type="text/javascript"
			charset="UTF-8"></script>
		<script src="Scripts/ui.admincp.js" type="text/javascript"
			charset="UTF-8"></script>
		<script type="text/javascript" src="Scripts/jquery.json-2.2.min.js"></script>
		<script type="text/javascript" src="Scripts/ui.validation.js"></script>
		<STYLE type="text/css">
		.editorArea {
			display: none;
		}
		.image-size{
			width:30px
			height:30px
		}
		.text-align-right {
			text-align: right;
			padding-right: 2px;
			font-weight: bolder;
		}
		</STYLE>
		<script type="text/javascript" src="Scripts/ui.dialogFormHelper.js"></script>
		<script type="text/javascript">
		$(function(){  
			setValidate();
 		}) ;
 		
 		function setValidate(){
    
    	 $("#form").validatingForm({
        	submitButtonId:"#btnSubmit",
        	  clearErrorsOnFocus:true,
        	 validateOnBlur:true
        	});
    	}
		</script>
	</head>
	<body>
		<div class="PageChild_Title">
			<img src=" themes/images/default/icons/archives.png"
				class="PageChild_Tbtnpic" />
			<span class="PageChild_separate"></span>
			<span class="PageChild_TbtnText"><h2>
					提交文件
				</h2>
			</span>
			<span class="PageChild_separate"></span>
			<div id="marker" class="red-tips">
			</div>
			<div class="clear">
			</div>
		</div>
		<br/><br/><br/>
		<div class="PageChild_Where">
			<div align="center" style="">
			<s:form id="form" action="fileSubmit!addSubmit.action" method="post" enctype="multipart/form-data">
			<table>
			<tr>
			<td class="text-align-right">文件归档信息：</td>
			<td>
			<s:select id="fileList" list="fileList" listKey="fileId" listValue="title" headerKey="-1" headerValue="-请选择-" name="fileId" theme="simple" emptyValueMsg="请选择文件归档信息。" emptyValueForValidate="-1" cssStyle="width:230px" cssClass="selectable-field"></s:select>
			</td></tr>
			<tr>
			<td class="text-align-right">上传文件：</td>
			<td>
			<s:file id="submitFileInfo" name ="submitFileInfo" cssClass="control-width-100 required-field input-control" theme="simple"/>
			</td></tr>
			<tr>
			<td class="text-align-right">摘要说明：</td>
			<td>
			<s:textarea id="abstracts" name="abstracts" theme="simple" cssStyle="width:230px" cssClass="required-field" rows="8"></s:textarea>
			</td></tr>
			<tr><td align="center" colspan="2">
			<input id="btnSubmit" type="image" src="themes/images/arrow-up.png" alt="提交" width="50px" height="50px" /><br/>
			<s:if test="str != null"><FONT color="red">${str}</FONT></s:if>
			</td></tr>
			</table>
			</s:form>
			</div>
		</div>
	</body>
</html>